package com.my.bo;

import java.util.List;

import com.my.bean.LiuYan;
import com.my.bean.Pic;
import com.my.bean.User;

public interface ManagerBo {

	/************************************ User ****************************************/
	int checkLogin(User user);

	User checkUser(User user);

	/************************************ Pic ****************************************/
	boolean add(Pic pic) throws Exception;

	List<Pic> getAllPic() throws Exception;

	/* 增加一条留言 */
	boolean add(LiuYan liuYan) throws Exception;

	/* 获得所有留言 */
	List<LiuYan> getAllLiuYan() throws Exception;

	/* 根据ID获取留言 */
	LiuYan getLiuYanById(Class<LiuYan> liuYan, Integer id) throws Exception;
}
